/**
 * Created by oiuyt on 2018/7/18.
 */
import React, { Component } from 'react';

import { Statistic, Row, Col } from 'antd';

const { Countdown } = Statistic;
const deadline = Date.now() + 1000 * 60 * 60 * 24 * 2 + 1000 * 30; // Moment is also OK

function onFinish() {
    console.log('finished!');
}
class Test11 extends Component {
    render() {



        return (
            <Row gutter={16}>
                <Col span={12}>
                    {deadline}
                    <Countdown title="Countdown" value={deadline} onFinish={onFinish} />
                </Col>
                <Col span={12}>
                    <Countdown title="Million Seconds" value={deadline} format="HH:mm:ss:SSS" />
                </Col>
                <Col span={24} style={{ marginTop: 32 }}>
                    <Countdown title="Day Level" value={deadline} format="D 天 H 时 m 分 s 秒" />
                </Col>
            </Row>
        )
    }
}


export default Test11
